﻿using System.Collections.ObjectModel;
using System.Windows;
using System.Windows.Controls;
using Xioa_UI.Controls;
using Xioa_UI.DataOrigin;

namespace Xioa_UI.Themes.Xioa;

public partial class XioaAnimationCards : UserControl
{
    public static readonly DependencyProperty AnimationCardsContentProperty =
          DependencyProperty.Register(nameof(AnimationCardsContent), typeof(System.Collections.IEnumerable), typeof(XioaAnimationCards));

    public System.Collections.IEnumerable AnimationCardsContent
    {
        get => (System.Collections.IEnumerable)GetValue(AnimationCardsContentProperty);
        set => SetValue(AnimationCardsContentProperty, value);
    }

    public static readonly DependencyProperty ToHeightProperty =
        ElementBase.Property<XioaAnimationCards, double>(nameof(ToHeightProperty),300);

    public double ToHeight
    {
        get => (double)GetValue(ToHeightProperty);
        set => SetValue(ToHeightProperty, value);
    }


    public XioaAnimationCards()
    {
        InitializeComponent();
    }
}